/**
 * 
 */
package com.wolfpire.subject.dao;

import java.util.List;

import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.model.OrgUserRelation;
import com.wolfpire.system.model.ProfessionSubjectRelation;
import com.wolfpire.system.model.UserGroupSubjectRelation;

/**
 * 用户组课程关联表持久层接口
 * @author lihd
 *
 */
public interface UserGroupSubjectRelationDao extends IBaseHibernateDao<UserGroupSubjectRelation, Long> {
	
	/**
	 * 绑定用户组和学科之间的关系
	 * @param userId
	 * @param orgId
	 */
	public void relate(Long usergroupId, Long subjectId);
	
	public void relate(Long usergroupId, List<Long> subjectIds);
	
	/**
	 * 获取用户组关联的学科
	 * @param userId
	 */
	public List<UserGroupSubjectRelation>  getUGSRelation(Long usergroupId);
	

}
